package org.sdp.pearproject.dto.convert;

import org.sdp.pearproject.dao.domain.*;
import org.sdp.pearproject.dto.request.*;
import java.util.Date;

/**
 * @ClassName: ProjectCollectionUpdateRequestConvert
 * @Description:
 * @Author: SDP
 * @Date: 2022-07-12
 * @Version: 1.0
 * Table: pear_project_collection
 * Comment:
 * 项目-收藏表
 */
public class ProjectCollectionUpdateRequestConvert extends BaseConvert {
    public static ProjectCollectionWithBLOBs convert(ProjectCollectionUpdateRequest request) throws Exception {
        ProjectCollectionWithBLOBs daoRequest = new ProjectCollectionWithBLOBs();
        copyProperties(request, daoRequest);

        daoRequest.setProjectCode(daoRequest.getProjectCode() == null ? null : daoRequest.getProjectCode().trim());
        daoRequest.setMemberCode(daoRequest.getMemberCode() == null ? null : daoRequest.getMemberCode().trim());
        daoRequest.setCreateTime(daoRequest.getCreateTime() == null ? null : daoRequest.getCreateTime().trim());

        return daoRequest;
    }
}
